#!/usr/local/bin/bash

let 'sum = 1'
while read line
do
    ((sum = sum * line))
done < $1
if [ "$sum" -eq "1" ]; then
	echo $sum
	exit 1 
fi
echo $sum
exit 0 
